package com.rht.gulimallmember.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * 积分变化历史记录
 * 
 * @author rht
 * @email rht@qq.com
 * @date 2024-11-07 13:57:31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("ums_integration_change_history")
public class IntegrationChangeHistoryEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
			@TableId
			private Long id;

	/**
	 * member_id
	 */
			private Long memberId;

	/**
	 * create_time
	 */
			   @DateTimeFormat(pattern = "yyyy-MM-dd")
		private Date createTime;

	/**
	 * 变化的值
	 */
			private Integer changeCount;

	/**
	 * 备注
	 */
			private String note;

	/**
	 * 来源[0->购物；1->管理员修改;2->活动]
	 */
			private Integer sourceTyoe;


}
